package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.ResponseTopData
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_AccountInformationChangePhoneInputCodeContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/10/29
 * @description 我的——账户信息——更换手机号页面（第二步：输入验证码）的Model
 */
class Module_UserInfo_AccountInformationChangePhoneInputCodeModel : BaseModel(),
    Module_UserInfo_AccountInformationChangePhoneInputCodeContract.Model {

    override fun getData() {
    }

    override fun sendBindPhoneCode(
        accessToken: String,
        bindArea: String,
        bindPhone: String,
        userId: Long,
        verifyCode: String
    ): Observable<HttpResult<ResponseTopData>> {
        return Base_RetrofitHelper.service.bindMobile(
            accessToken,
            bindArea,
            bindPhone,
            userId,
            verifyCode
        )
    }
}